@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
  margin: 0px;
  padding: 0px;
  user-select: none; // 按下shift键并按下鼠标时，不出现高亮效果
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pointer {
  cursor: pointer;
}

.inline-block {
  display: inline-block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.text-center {
  text-align: center
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

/* 表格不出现横向滚动条 */
.el-table--scrollable-x .el-table__body-wrapper {
  overflow-x: hidden;
}
/* 表格选中行高亮颜色 */
.el-table__body tr.current-row>td {
  background: #6fb0e6 !important;
  color: aliceblue;
}
/* 设置表头的高度 */
.el-table__header tr,
.el-table__header th {
  padding: 0;
  height: 35px;
}
/* 鼠标覆盖样式 */
.el-table tbody tr:hover>td {
  background-color: #9ed0f8b4!important;
  color: rgb(58, 61, 63);
}
.el-table :hover {
  cursor: default;
}
// 解决火狐浏览器border/stripe属性下，边框显示不正常的问题
.el-table td {
  background-clip: padding-box;
}
// 滚动条样式
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
  z-index: 1000;
}
::-webkit-scrollbar-thumb {
  background-color: #063b5a27;
  border-radius: 5px;
}
// 分页栏样式
.el-pagination {
  margin-top: 2px;
  margin-bottom: 0px;
  background-color: #4d9eeb2d;
  overflow: hidden;
}
// 表头与内容不对齐
.el-table th {
	display: table-cell!important;
}
.refresh-button {
  font-size: 17px !important;
  margin-left: 5px;
  width: 10px;
}
.el-dialog{
  display: flex;
  flex-direction: column;
  /* 以上是防止body内部滚动 */
  margin:0 !important;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  /* 以上是让对话框居中 */
  max-height:calc(100% - 3px);
  max-width:calc(100% - 2px);
  /* 以上是限制对话框的大小，防止超出屏幕 */
}
// 级联选择器el-cascader，通过点击label文字部分选中
.el-cascader-panel .el-radio{ 
  width: 100%; 
  height: 100%;
  z-index: 10; 
  position: absolute; 
  top: 10px; 
  right: -10px;
} 
.el-cascader-panel .el-radio__input{
  visibility: hidden;  //隐藏单选框，不隐藏就不用设置
} 
.el-cascader-panel .el-cascader-node__postfix{
  top: 10px; 
}
// 消息提示框样式
.el-message {
  top: 20px!important;
  padding: 15px;
  .el-message__icon {
    font-size: 32px;
    color: #ffffffea;
  }
  .el-message__content {
    font-size: 16px;
    color: #ffffffea;
  }
}
.el-message--error {
  background-color: #EE9287;
  border-color: #EE92877D;
}
.el-message--warning {
  background-color: #E9CF5B;
  border-color: #E9CF5B7D;
}
.el-message--success {
  background-color: #98C368;
  border-color: #98C3687D;
}
.el-message--info {
  background-color: #bbb8b8;
  border-color: #bbb8b87D;
}
.el-message__closeBtn {
  color: #ffffffc2;
}
// 全局页面
.page-container {
  height: calc(100vh - 84px);
  width: 100%;
}

.mr-15 {
  margin-right: 15px;
}

// 宽度
.width-150 {
  width: 150px;
}
.width-160 {
  width: 160px;
}
.width-180 {
  width: 180px;
}
.width-200 {
  width: 200px;
}

// 文字
.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.el-input .el-input__count {
  position: relative;
  .el-input__count-inner {
    position: absolute;
    left: 10px;
    white-space: nowrap;
  }
}
.el-input__icon {
  overflow: hidden;
}